<?php

namespace App\Http\Requests;

class ReplyRequest extends Request
{
    public function rules()
    {
        switch ($this->method()) {
            // CREATE
            case 'POST':
                {
                    return [
                        'content' => 'required|min:5',
                    ];
                }
        }
    }

    public function messages()
    {
        return [
            'content.required' => '回复内容不得少于五个字符！',
        ];
    }
}
